package com.jzr.board.controller.api;

import com.jzr.board.db1.service.TWorkViewService;
import com.jzr.board.db1.vo.WorkViewVo;
import com.jzr.common.entity.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "工作汇总")
@RestController
@RequestMapping("/api/workView")
public class WorkViewController {
    @Autowired
    private TWorkViewService workViewService;

    @ApiOperation("今日汇总")
    @GetMapping("/get")
    public Result<WorkViewVo> get(String deptCode){
        WorkViewVo workViewVo = workViewService.get(deptCode);
        return Result.success("成功",workViewVo);
    }
}
